package wxshop.web.admin.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import wxshop.api.admin.dao.OfficialAccountsManageDao;
import wxshop.api.admin.model.wx.OfficialAccountInfo;
import wxshop.web.user.dto.FormResult;

@SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
@RestController
@RequestMapping("/admin/officialnumber")
public class OfficialNumberController {
    @Autowired
    private OfficialAccountsManageDao officialAccountsManageDao;
    @RequestMapping("/selectBaseInfo")
    public FormResult selectBaseInfo(){
       OfficialAccountInfo oai =  officialAccountsManageDao.selectOfficialAccountInfo();
        return new FormResult(true,oai);
    }
}
